import {MENUS,SWIPER,NOTICE,SPECIAL,TRENDS,NEWS,LISTS,DETAIL} from './api'
import {METHOD, request} from '@/utils/request'

export async function menus() {
  return request(MENUS, METHOD.GET)
}

export async function swiper() {
  return request(SWIPER, METHOD.GET)
}

export async function notice() {
  return request(NOTICE, METHOD.GET)
}

export async function special() {
  return request(SPECIAL, METHOD.GET)
}

export async function trends() {
  return request(TRENDS, METHOD.GET)
}

export async function news() {
  return request(NEWS, METHOD.GET)
}

export async function lists() {
  return request(LISTS, METHOD.GET)
}

export async function detail() {
  return request(DETAIL, METHOD.GET)
}


export default {menus, swiper, notice,trends,news,lists,detail}